<?php

class Customer
{
  public function __sleep() {
    echo "I am in sleep";
    //return array();
  }

  public function __wakeup() {
    echo "I am in wakeup";
  }
}


$c = new Customer();
$data = serialize($c)."<br>";
var_dump(unserialize($data));
